#!/bin/bash

WEE_PATH=/data/ds-preview-h5
DATE=$(date +%Y%m%d%H%M%S)
EXPIREDDATE=$(date -d '1 day ago' +%Y%m%d)
cd $WEE_PATH
git fetch --all
git reset --hard origin/master
git pull
chmod 777 -R /data/ds-preview-h5/*.sh
yarn
if [ "$1" ];then
	echo "带参数";
	npm run build:$1

else
    echo "没有带参数 "
	npm run build:h5
fi
echo "my u-Dev is $1"
